/**
 * 测试db.js 操作数据库通用api
 */
const db = require('./db.js')
let sql = "insert into book set ?"
let data = {
  name:'111',
  author: '111',
  lei: '111',
  description: '111'
}

db.base("book",sql,data,(res)=>{
  console.log(res);
})